//
//  MSSearchBar.h
//  MS
//
//  Created by Yuan on 13-4-6.
//  Copyright (c) 2013年 He Yuan. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MSSearchBar;

@protocol SearchToolBarDelegate <NSObject>

-(void)searchToolSearchBtnDone:(UIButton *)_btn searchToolView:(MSSearchBar *)_searchTool
					searchText:(NSString *)_searchText;

-(void)searchToolDidBegainEditing:(MSSearchBar *)_searchTool;

-(void)searchToolDidEndEditing:(MSSearchBar *)_searchTool;

-(void)searchToolShoulReturn:(MSSearchBar *)_searchTool;

@end


@interface MSSearchBar : UIView<UITextFieldDelegate>{
    
@private
	
	UITextField *txtField;
	UIButton *searchBtn;
	
@public
	
	__unsafe_unretained id<SearchToolBarDelegate>delegate;
	NSString *text;
}

@property (nonatomic,assign) id<SearchToolBarDelegate>delegate;
@property (nonatomic,retain)NSString *text;

@end